import request from '/@/utils/request';


export function useBasicApi() {
	return {
		// 表格API+表单查询
		BasicTableApi: (params: object) => {
			return request({
				url: '/api/admin/basic/regions',
				method: 'get',
				params,
			});
		},
		// 表单编辑(回显)
		BasicEchoApi:(params:Object)=>{
			return request({
				url:"/api/admin/basic/region",
				method:"get",
				params
			})
		},
		// 添加
		BasicAddApi:(data:Object)=>{
			return request({
				url:"/api/admin/basic/region",
				method:"post",
				data
			})
		},
		// 表单编辑
		BasicEditApi:(data:Object)=>{
			return request({
				url:"/api/admin/basic/region",
				method:"put",
				data
			})
		},
		// 删除
		BasicDelApi:(data:string)=>{
			return request({
				url:"/api/admin/basic/region",
				method:"delete",
				data
			})
		},

	};
}